<template>
  <div class="czx">
    <!-- <div class="czx-a">
      <div class="czx-aa">返回</div>
    </div> -->
    <div class="czx-b">
      <div class="czx-b-a">查征信</div>
      <div class="czx-b-aa">
        <div class="czx-b-aaa"></div>
        <input
          type="text"
          v-model="seParch"
          placeholder="请输入企业名称"
          class="czx-b-b"
        />
        <div class="czx-b-aaaa" @click="getList()">搜索</div>
      </div>
    </div>
    <div class="czx-c">
      <img src="../../assets/imgs/djl/gsb.png" alt="" class="czx-c-aa" />
      <div class="czx-d">
        <div class="czx-c-a" v-for="(item, index) in czxList" :key="index">
          <img :src="item.image" alt="" class="czx-c-aaa" />
          <div class="czx-c-b">{{ item.title }}</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "",
  /*1. Vue扩展 */
  extends: "", // extends和mixins都扩展逻辑，需要重点放前面
  mixins: [],
  components: {},
  /* 2. Vue数据 */
  props: {},
  model: { prop: "", event: "" }, // model 会使用到 props
  data() {
    return {
      seParch: "",
      czxList: [
        {
          image: require("../../assets/imgs/djl/gsa.png"),
          title: "工商信息",
        },
        {
          image: require("../../assets/imgs/djl/gsaaaaaa.png"),
          title: "股东信息",
        },
        {
          image: require("../../assets/imgs/djl/gsaaaa.png"),
          title: "法定代表人",
        },
        {
          image: require("../../assets/imgs/djl/gsaaaaa.png"),
          title: "主要人员",
        },
        {
          image: require("../../assets/imgs/djl/gsaa.png"),
          title: "变更记录",
        },
        {
          image: require("../../assets/imgs/djl/gsaaa.png"),
          title: "关联图谱",
        },
      ],
    };
  },
  computed: {},
  watch: {}, // watch 监控的是 props 和 data，有必要时监控computed
  /* 3. Vue资源 */
  filters: {},
  directives: {},
  /* 4. Vue生命周期 */
  created() {
    const aa = this.getlist(5);
    console.log(aa);
    function name(aaaa) {

      console.log(aaaa)
    }
    name(1)
  },
  mounted() {},
  destroy() {},
  /* 5. Vue方法 */
  methods: {
    getList() {
      if (!this.seParch) {
        this.$toast("请输入文本内容");
      } else
        this.$router.push({
          path: "/djlczx/sousuojieguo",
          query: {
            name: this.seParch,
          },
        });
    },

    getlist(number) {
      let a = [];
      for (let i = 0; i < number; i++) {
        a.push(number);
      }
      return a;
    },

  
  },
};
</script>

<style scoped lang="scss">
.czx {
  .czx-a {
    height: 91px;
    border: 1px solid red;
    .czx-aa {
      margin: 50px 0 0 20px;
    }
  }
  .czx-b {
    height: 190px;
    background-image: url("../../assets/imgs/djl/gsbbbb.png");
    background-repeat: no-repeat;
    background-size: cover;
    .czx-b-a {
      text-align: center;
      font-family: Alimama ShuHeiTi;
      font-weight: bold;
      font-size: 28px;
      color: #ffffff;
      padding-top: 35px;
    }
    .czx-b-aa {
      height: 47px;
      display: flex;
      align-items: center;
      margin: 25px 16px 0 16px;
      border: 1px solid red;
      background: #ffffff;
      box-shadow: 0px 0px 16px 0px #ffffff;
      border-radius: 6px;
      .czx-b-aaa {
        width: 15px;
        height: 15px;
        margin-left: 16px;
        border: 1px solid red;
      }
      .czx-b-b {
        font-family: Source Han Sans SC;
        font-weight: 400;
        font-size: 15px;
        color: #5f6269;
        margin-left: 10px;
      }
      .czx-b-aaaa {
        margin-left: auto;
        background: #3164d4;
        border-radius: 6px;
        height: 42px;
        font-family: Source Han Sans SC;
        font-weight: 400;
        font-size: 15px;
        color: #ffffff;
        line-height: 42px;
        text-align: center;
        width: 80px;
        margin-right: 2px;
      }
    }
  }
  .czx-c {
    .czx-c-aa {
      width: 232px;
      height: 35px;
      margin: 40px 78px 0 78px;
    }
    .czx-d {
      margin-top: 40px;
      display: grid;
      /* 定义网格布局，3列 */
      grid-template-columns: repeat(3, 1fr);
      /* 定义网格行的高度 */
      grid-auto-rows: 100px; /* 每行高度为100px */
      /* 设置网格之间的间距 */
      gap: 10px;
      .czx-c-a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
      }
      .czx-c-aaa {
        height: 53px;
        width: 53px;
      }
      .czx-c-b {
        font-family: Alibaba PuHuiTi;
        font-weight: 400;
        font-size: 18px;
        color: #323232;
        margin-top: 8px;
      }

      .czx-c-a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
      }
      .czx-c-aaa {
        height: 53px;
        width: 53px;
      }
      .czx-c-b {
        font-family: Alibaba PuHuiTi;
        font-weight: 400;
        font-size: 18px;
        color: #323232;
        margin-top: 8px;
      }
    }
  }
}
</style>
